package com.crm.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.model.mdao.LoginNumMapper;
import com.crm.model.mpojo.LoginNum;

/**
 * 登陆统计表
 * @author 梁箐
 *
 */
@Service
public class LoginNumServices {

	@Autowired
	LoginNumMapper loginNumMapper;
	
	//获取今日登录数
	public Integer selectNumToday() {
		return loginNumMapper.selectNumToday();
	}
	
	//添加一条数据
	public int add(LoginNum loginNum) {
		int add = loginNumMapper.insertSelective(loginNum);
		return add;
	}
	
}
